package com.taoes.simpledocker.controller.network;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.Network;
import lombok.Data;

import java.util.Map;

@Data
public class NewNetworkRequest {

    @JsonProperty("Name")
    private String name;

    @JsonProperty("Scope")
    private String scope="local";

    @JsonProperty("Driver")
    private String driver="bridge";

    @JsonProperty("EnableIPv6")
    private Boolean enableIPv6=false;

    @JsonProperty("Internal")
    private Boolean internal=false;

    @JsonProperty("IPAM")
    private Network.Ipam ipam;

    @JsonProperty("Options")
    private Map<String, String> options;

    @JsonProperty("Attachable")
    private Boolean attachable=false;

}
